package cn.tedu.bonfire.admin.account.dao.persist.repository;


import cn.tedu.bonfire.admin.account.pojo.entity.UserAndRole;

public interface IUserAndRoleRepository {

    int insert(UserAndRole userAndRole);

    /**
     * 分配角色
     * @param roleId
     * @return
     */
    int updateRoleIdByUserId(Long userId,Long roleId);

    int updateUserDescriptionByUserId (Long userId,String description);
}
